
var namecheck = false;
var namecheck = false;
var namecheck = false;
var namecheck = false;
var namecheck = false;
var namecheck = false;
var namecheck = false;
var namecheck = false;
var   PatSWord=/^[\x00-\xff]+$/;
function init(){
	document.getElementById("register").onsubmit= "return check()";
	document.getElementById("memberId").onmouseout = idcheck;
}
window.onload = init; 
function idcheck()
{
   var str = document.getElementById("memberId").value;
    var s;       
    var ts;       
    var tscode;       
    if(PatSWord.test(str) || str=="" ){
		             document.getElementById("idcheck").src="images/error.jpg";
		             document.getElementById("idcheck").style.display="";
		             return ;      
    }
     document.getElementById("idcheck").src="images/right.jpg";
     document.getElementById("idcheck").style.display="";
    		            
}
function check()
{
 
}
 function changeStatus(a){//a为ul的id名
    var ul=document.getElementById(a);
    if (ul.style.display == "none") { 
    ul.style.display = ""; 
   }else{ 
    ul.style.display = "none"; 
   } 
}
